//
//  AllContactsViewController.h
//  Assistant
//
//  Created by Hunk on 12-2-29.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PersonCell.h"

@protocol AllContactsViewControllerDelegate;
@interface AllContactsViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate, PersonCellDelegate, UISearchDisplayDelegate>
{
    @private
    UITableView               *_tableView;
    
    UISearchDisplayController *searchDisplayController;
    
    NSMutableArray            *_searchDisplayArray;
    
    NSMutableDictionary       *_allContactsDictionary;
    
    NSMutableArray            *_sectionTitleArray;
    
    // Checkmark
    NSMutableDictionary       *_checkmarkDictionary;
    
    NSMutableArray            *_selectedMemberArray;
    
    id<AllContactsViewControllerDelegate> _delegate;
    
    // Original data
    NSMutableArray            *_originalMemberArray;
    
}
@property (nonatomic, readonly)NSMutableArray *selectedMemberArray;
@property (nonatomic, assign)  id<AllContactsViewControllerDelegate> delegate;

@end

@protocol AllContactsViewControllerDelegate <NSObject>

- (void)didSelectedMembers:(NSMutableArray *)selectedMembers;

@end
